const express = require('express');
const app = express();
app.set('view engine','ejs');
app.get('/',(req,res)=>{
    res.send('test')
})
app.get('/indexxx',(req,res)=>{
    res.render('index',{test:"tutu",arr:[{name:'tutu',age:18},{name:'shuoshuo',age:17}]})
})
app.listen(8080,(err)=>{
    if(!err) console.log('服务器启动');
    else console.log(err)
})